<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@include file="../jsp/common/taglibs.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title><decorator:title default="Management Center" /> | <spring:message code="webapp.name" /></title>
  <!-- meta -->
  <%@ include file="../jsp/common/meta.jspf"%>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">


<!-- css links -->
<%@include file="../jsp/common/links.jspf"%>
<!-- js scripts -->
<%@include file="../jsp/common/scripts.jspf"%>



  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
</head>

<body>

<section>
    <!-- left side start-->
    <div class="left-side sticky-left-side">

        <!-- header -->
        <%@include file="../jsp/common/header.jspf"%>
        <!-- messages -->
        <%@ include file="../jsp/common/messages.jspf"%>



        <div class="left-side-inner">

            <!-- visible to small devices only -->
            <div class="visible-xs hidden-sm hidden-md hidden-lg">
                <div class="media logged-user">
                    <div class="media-body">
                        <h4><a href="#">John Doe</a></h4>
                        <span>"Hello There..."</span>
                    </div>
                </div>

                <h5 class="left-nav-title">Account Information</h5>
                <ul class="nav nav-pills nav-stacked custom-nav">
                    <li><a href="#"><i class="fa fa-user"></i> <span>Profile</span></a></li>
                    <li><a href="#"><i class="fa fa-cog"></i> <span>Settings</span></a></li>
                    <li><a href="#"><i class="fa fa-sign-out"></i> <span>Sign Out</span></a></li>
                </ul>
            </div>

            <!--sidebar nav start-->
            <ul class="nav nav-pills nav-stacked custom-nav">
                <li class="menu-list <decorator:getProperty property='meta.menu-user' />"><a href="index.html"><i class="fa fa-user"></i> <span><spring:message code="webapp.menu.user"/></span></a>
                    <ul class="sub-menu-list">
                        <li class="<decorator:getProperty property='meta.menu-user-account' />"><a href="/opUserAccount/account"><spring:message code="webapp.menu.user.account" /></a></li>
                        <li class="<decorator:getProperty property='meta.menu-user-password' />"><a href="/opUserAccount/password"><spring:message code="webapp.menu.user.password" /></a></li>
                    </ul>
                </li>
                <auth:hasAnyPermission name="ADMIN:OPUSER|ADMIN:ROLE|ADMIN:AUTHORITY">
                <li class="menu-list <decorator:getProperty property='meta.menu-admin' />"><a href=""><i class="fa fa-cog"></i> <span><spring:message code="webapp.menu.admin"/></span></a>
                    <ul class="sub-menu-list">
                        <shiro:hasPermission name="ADMIN:OPUSER">
                            <li class="<decorator:getProperty property='meta.menu-admin-opuser' />"><a plain="true" href="/opAdmin/opuser"><spring:message
                                        code="webapp.menu.admin.user" /></a></li>
                        </shiro:hasPermission>
                        <shiro:hasPermission name="ADMIN:ROLE">
                            <li class="<decorator:getProperty property='meta.menu-admin-role' />"><a plain="true" href="/opAdmin/role"><spring:message
                                        code="webapp.menu.admin.role" /></a></li>
                        </shiro:hasPermission>
                        <shiro:hasPermission name="ADMIN:AUTHORITY">
                            <li class="<decorator:getProperty property='meta.menu-admin-authority' />"><a plain="true" href="/opAdmin/authority"><spring:message
                                        code="webapp.menu.admin.authority" /></a></li>
                        </shiro:hasPermission>
                    </ul>
                </li>
                </auth:hasAnyPermission>

			<auth:hasAnyPermission
				name="<#list tables as table>${databaseNameCamel?upper_case}:${table.generateClassName?upper_case}<#if table_has_next>|</#if></#list>">
				<li class="menu-list <decorator:getProperty property='meta.menu-${databaseNameCamel}' />"
					title="<spring:message code="webapp.menu.${databaseNameCamel}"/>" >
                    <a href=""><i class="fa fa-table"></i> <span><spring:message code="webapp.menu.${databaseNameCamel}"/></span></a>
					<ul class="sub-menu-list">
						<#list tables as table>
						<shiro:hasPermission name="${databaseNameCamel?upper_case}:${table.generateClassName?upper_case}">
							<li class="<decorator:getProperty property='meta.menu-${databaseNameCamel}-${table.unCapGenerateClassName}' />">
								<a href="/${databaseNameCamel}/${table.unCapGenerateClassName}"><spring:message
										code="webapp.menu.${databaseNameCamel}.${table.unCapGenerateClassName}" /></a>
							</li>
						</shiro:hasPermission>
						</#list>
					</ul>
				</li>
			</auth:hasAnyPermission>
	            <li id="logout">
	            	<a href="/logout"><i class="fa fa-sign-out"></i> <span><spring:message code="webapp.constant.logout"/></span></a>
	            </li>
            </ul>
            <!--sidebar nav end-->

        </div>
    </div>
    <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div class="header-section">

        <!--toggle button start-->
        <a class="toggle-btn"><i class="fa fa-bars"></i></a>
        <!--toggle button end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                <decorator:title default="Management Center" />
            </h3>
        </div>
        <!-- page heading end-->
        <!--search start>
        <form class="searchform" action="http://view.jqueryfuns.com/2014/4/10/7_df25ceea231ba5f44f0fc060c943cdae/index.html" method="post">
            <input type="text" class="form-control" name="keyword" placeholder="Search here..." />
        </form>
        <search end-->

        <!--notification menu start -->
        <div class="menu-right">
            <ul class="notification-menu">
                <li>
                    <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        <shiro:guest>Guest<a href="/login"><spring:message code="webapp.constant.login"/></a></shiro:guest>
                        <shiro:user><shiro:principal /></shiro:user>
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                        <li><a href="/logout"><i class="fa fa-sign-out"></i> 退出登录</a></li>
                    </ul>
                </li>

            </ul>
        </div>
        <!--notification menu end -->

        </div>
        <!-- header section end-->

        <!--body wrapper start-->
        <div class="wrapper">
             <div class="row">
                <div class="col-sm-12">
                <section class="panel">
                <div class="panel-body">
                <div class="adv-table editable-table ">
                <div class="space15">
                    <div id="sysInfo" class="alert" role="alert"></div>
                    <decorator:body />
                </div>
                </div>
                </div>
                </section>
                </div>
                </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <%@include file="../jsp/common/footer.jspf"%>
        <!--footer section end-->

    <!-- js scripts -->
    <%@include file="../jsp/common/scripts_btm.jspf"%>

    </div>
    <!-- main content end-->
</section>

</body>
</html>